<script>
export default {
  name: "filterPage",
  data(){
    return{
      msg:"我123的",
      msg2:'今天周四'
    }
  },
  methods:{},
  //私有过滤器
  filters:{
    ownFilter(data,format){
      console.log(data,format);
      return data.replace('123','888')
    }
  }
}
</script>

<template>
<div>
 过滤器
    {{msg}}
  <p>{{msg|setMsg(123)}}</p>
  <p>{{msg|setMsg(123) |setMsg1('这是第二个')}}</p>
  <p>{{msg| ownFilter('这是私有过滤器')}}</p>
  <!--  预留展示区域  -->
  <router-view name="courseIndex">111</router-view>
  <router-view name="keyBoard">222</router-view>
  <router-view name="brandPage">333</router-view>
  <router-view></router-view>
</div>
</template>

<style scoped lang="less">

</style>